const mongoose=require('mongoose')
mongoose.connect("mongodb://walking:123456@123.57.225.29:27017/walking?authSource=walking")

const con=mongoose.connection

con.on('open',function(){
    console.log('数据链接成功')
})

con.on('error',function(err){
    console.log('链接失败',err)
})

module.exports=mongoose